package com.lw.entity.table;

import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;


/**
 *  表定义层。
 *
 * @author lw
 * @since 2025年04月29日 17:50:05
 */
public class TbUserInterfaceTableDef extends TableDef {

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public static final TbUserInterfaceTableDef TB_USER_INTERFACE = new TbUserInterfaceTableDef();

    
    public final QueryColumn ID = new QueryColumn(this, "id");

    
    public final QueryColumn USER_ID = new QueryColumn(this, "user_id");

    
    public final QueryColumn CREATE_TIME = new QueryColumn(this, "create_time");

    
    public final QueryColumn CREATE_USER = new QueryColumn(this, "create_user");

    
    public final QueryColumn INTERFACE_ID = new QueryColumn(this, "interface_id");

    /**
     * 所有字段。
     */
    public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");

    /**
     * 默认字段，不包含逻辑删除或者 large 等字段。
     */
    public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{ID, USER_ID, INTERFACE_ID, CREATE_TIME, CREATE_USER};

    public TbUserInterfaceTableDef() {
        super("", "tb_user_interface");
    }

    private TbUserInterfaceTableDef(String schema, String name, String alisa) {
        super(schema, name, alisa);
    }

    public TbUserInterfaceTableDef as(String alias) {
        String key = getNameWithSchema() + "." + alias;
        return getCache(key, k -> new TbUserInterfaceTableDef("", "tb_user_interface", alias));
    }

}
